<template>
  <div>
    <!--条件筛选-->
    <!-- <TopFilter :list="topFilterList" :cols="3" labelWidth="110" @filterChange="changeHandle" @onCollapse="collapseHandle"></TopFilter> -->
    <!--操作 -->
    <button-area :style="{ paddingLeft: '80px' }"></button-area>
    <div>
      <FormPanel ref="formPanel" :list="formList" :cols="3" :labelWidth="160" :formType="type" :isSubmitBtn="false" @formChange="formChangeHandle" />
    </div>

  </div>
</template>

<script>
import { dictionary } from '@/utils/dictMixin';
import { getQueryAccounts } from '@/api/repair/queryStatistics/queryAccounts';



export default {
  name: 'LHMMCostAccounting',
  components: {

  },
  mixins: [dictionary],
  data() {
    return {
      topFilterList: this.createTopFilterList(),
      formList: this.createFormList(),
    };
  },
  mounted() {
  },
    created() {
    this.init();
  },
  methods: {
    createTopFilterList() {
      return [
        {
          type: 'SELECT',
          label: '查询方式',
          fieldName: 'dateType',
          placeholder: '选择日期',
          itemList: [
            { text: '出厂日期', value: 1001 },
            { text: '结算日期', value: 1002 }
          ]
        },
        {
          type: 'RANGE_DATE',
          label: '日期范围',
          fieldName: 'beginDate|endDate',
          placeholder: '选择日期'
        },
        {
          type: 'INPUT',
          label: '委托书类别',
          fieldName: 'REPAIR_TYPE_CODE',
          rules: [{ required: true, message: '请选择委托书类别', trigger: 'blur' }]
        },
        {
          type: 'CHECKBOX',
          label: '包含免费类委托书',
          fieldName: 'cusId',
          options: {
            trueValue: '10041001',
            falseValue: '10141002'
          }
        }
      ];
    },
   createFormList() {
      return [
        {
          type: 'INPUT',
          label: '生产性人员工资总额',
          disabled:true,
          fieldName: 'addItemCode'
        },
        {
          type: 'INPUT',
          label: '弥补成本',
          disabled:true,
          fieldName: 'addItemName'
        },
        {
          type: 'INPUT',
          label: '开工成本（水、电、气等）',
          disabled:true,
          fieldName: 'addItemName'
        },
        {
          type: 'INPUT',
          label: '工具设备易耗品',
          disabled:true,
          fieldName: 'addItemCode'
        },
        {
          type: 'INPUT',
          label: '邮件和电话',
          disabled:true,
          fieldName: 'addItemName'
        },
        {
          type: 'INPUT',
          label: '非生产性人员工资总额',
          disabled:true,
          fieldName: 'addItemName'
        },
        {
          type: 'INPUT',
          label: '差旅培训',
          disabled:true,
          fieldName: 'addItemName'
        },
        {
          type: 'INPUT',
          label: '社会开支总额',
          disabled:true,
          fieldName: 'addItemName'
        },
        {
          type: 'INPUT',
          label: '各种税及保险',
          disabled:true,
          fieldName: 'addItemCode'
        },
        {
          type: 'INPUT',
          label: '设备折旧及维护',
          disabled:true,
          fieldName: 'addItemName'
        },
        {
          type: 'INPUT',
          label: '租金',
          disabled:true,
          fieldName: 'addItemName'
        },
        {
          type: 'INPUT',
          label: '车间管理费用',
          disabled:true,
          fieldName: 'addItemName'
        },
        {
          type: 'INPUT',
          label: '广告费用',
          disabled:true,
          fieldName: 'addItemName'
        }
      ];
    },
    init(){

    },

    formChangeHandle(val) {
      this.saveData = val;
    },

    changeHandle(val) {
      this.fetchParams = Object.assign({}, val);
    },
    collapseHandle() {
      this.$nextTick(() => {
        this.BaseTable.EXECUTE_RESET_HEIGHT();
      });
    },
  }
};
</script>

<style lang="less" scoped></style>
